<%@page import="org.lanqiao.tjut.bean.Department"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>增加部门员工</title>
</head>
<body>
	<%
		List<Department> listdept = new ArrayList<Department>();
		Department dept1 = new Department();
		dept1.setDept_id(11);
		dept1.setDept_name("开发部");
		dept1.setDept_locationid(101);
		dept1.setDept_managerid("20160906001");
		listdept.add(dept1);

		Department dept2 = new Department();
		dept2.setDept_id(12);
		dept2.setDept_name("开发部");
		dept2.setDept_locationid(102);
		dept2.setDept_managerid("20160906002");
		listdept.add(dept2);

		Department dept3 = new Department();
		dept3.setDept_id(13);
		dept3.setDept_name("开发部");
		dept3.setDept_locationid(103);
		dept3.setDept_managerid("20160906003");
		listdept.add(dept3);

		session.setAttribute("listdept", listdept);
	%>
	<div align="center"  >
		<th>
		<td>ID</td>
		<td>部门名称</td>
		<td>本地ID</td>
		<td>部门ID</td>
		</th>
	<c:forEach items="${sessionScope.listdept }" var="dept">
	<th>
		<tr>
			<td><c:out value="${dept.dept_id }"></c:out></td>
			<td><c:out value="${dept.dept_name }"></c:out></td>
			<td><c:out value="${dept.dept_locationid }"></c:out></td>
			<td><c:out value="${dept.dept_managerid }"></c:out></td>
		</tr>
	</th>
	</c:forEach>
	</div>


</body>
</html>